import Vue from 'vue'
import App from './App'
import router from './router'
import store from './vuex/store'
import ElementUI from 'element-ui';


Vue.config.productionTip = false

import ECharts from 'vue-echarts' // refers to components/ECharts.vue in webpack

// // import ECharts modules manually to reduce bundle size
// import 'echarts/lib/chart/bar'
// import 'echarts/lib/component/tooltip'

// If you want to use ECharts extensions, just import the extension package and it will work
// Taking ECharts-GL as an example:
// You only need to install the package with `npm install --save echarts-gl` and import it as follows
import 'echarts-gl'
// register component to use


Vue.component('v-chart', ECharts)
import VueDraggableResizable from './components/vue-draggable-resizable.vue'

// optionally import default styles
// import 'vue-draggable-resizable/dist/VueDraggableResizable.css'
Vue.component('vue-draggable-resizable', VueDraggableResizable)

Vue.use(ElementUI, {
  size: 'small' ,
 })

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
